import FlowDesignTCD from './pages'

import G6 from './registerG6'
import '../src/vab/styles/flow-design-tcd.less'

function install(Vue) {
  //检查是否已经注册过FlowDesignTCD
  if (install.installed) return
  install.installed = true
  Vue.config.globalProperties.G6 = G6

  Vue.component(FlowDesignTCD.name, FlowDesignTCD)
}

if (typeof window !== 'undefined' && window.Vue) {
  install(window.Vue)
}

export default {
  install,
}
